dict_a = {'name':'anxin1','id':'01'}
dict_b = {'name':'anxin2','id':'02'}
dict_c = {'name':'anxin3','id':'03'}
dict_d = {'name':'anxin4','id':'04'}
users = [dict_a,dict_b,dict_c,dict_d]
# print(len(student))

for i in range(3):
    username = input("请输入用户名: ")
    name_found = False
    id_found = False
    for user in users:
        if user['name'] == username:
            name_found = True
            for j in range(3):
                userid = input("请输入id: ")
                if user['id'] == userid:
                    id_found = True
                    print("登陆成功")
                    break
                else:
                    print("id错误")
            if not id_found:
                print("超过id输入次数限制")
if not name_found:
    print("超过姓名输入次数限制")









